Skip to content

Init#1

Merged
MasonChow merged 10 commits intomainfrom
init
Aug 29, 2025
Merged

Init#1
MasonChow merged 10 commits intomainfrom
init

Conversation

@MasonChow
Copy link
Owner

No description provided.

- Introduced  crate with a Cargo.toml and lib.rs for WASM support.
- Implemented functions to generate tokens from error stacks and single stack traces.
- Added context lookup capabilities for source maps.
- Created a  crate for parsing and mapping JavaScript stack traces.
- Implemented core functionalities including stack line parsing, error stack mapping, and source unpacking.
- Added tests for the new functionalities to ensure correctness.
- Included a build script for building the WASM package targeting Node.js.
- Introduced a GitHub Actions CI workflow () to automate the build and test process for the Rust WASM project.
- Configured caching for Cargo and wasm-pack to speed up builds.
- Added steps for running native tests and WASM node tests.

feat: implement release workflow for automated versioning and publishing

- Created a GitHub Actions release workflow () triggered by version tags.
- Added steps for verifying crate versions, running tests, generating changelogs, and publishing to crates.io, npm, and GitLab.
- Implemented GitHub release creation with changelog notes.

docs: add CONTRIBUTORS guide for project contributors

- Added  to provide guidelines for contributing to the project, including setup, coding standards, and release processes.

fix: update author information in Cargo.toml

- Changed author field in  to include email address for better identification.

docs: update README for WASM usage and testing instructions

- Revised the README to clarify usage instructions for the WASM Node package and added testing instructions.

test: add WASM tests for token generation and error mapping

- Created new test files ( and ) to cover WASM functionality in the Node SDK.
- Implemented tests for various token generation and error mapping scenarios.

refactor: improve context lookup and stack transformation logic

- Enhanced the context lookup function to return more structured context lines.
- Added unit tests for context lookup and stack transformation functionalities.

test: add integration tests for SourceMapParserClient

- Introduced integration tests in  to validate the SourceMapParserClient's functionality with various source maps.

chore: add changelog generation script

- Implemented a script () to automate changelog generation based on commit messages following the Conventional Commits format.
Copilot AI review requested due to automatic review settings August 29, 2025 16:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR initializes a new source map parser library written in Rust with WASM bindings for Node.js. The library provides comprehensive source map parsing capabilities including stack trace parsing, token mapping, and context extraction.

  • Core source map parsing library with support for multiple JavaScript engines (V8, Firefox, Safari)
  • WASM bindings for Node.js integration with comprehensive API exports
  • Build scripts and CI/CD pipeline setup for automated testing and publishing

Reviewed Changes

Copilot reviewed 22 out of 23 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
scripts/generate-changelog.sh Changelog generation script for conventional commits
scripts/build-wasm-node.sh Build script for WASM Node.js target
crates/source_map_parser/ Core library with parsing, mapping, and context extraction
crates/node_sdk/ WASM bindings and Node.js integration layer
.github/workflows/ CI/CD workflows for testing and release automation
README.md Project documentation and usage examples
Cargo.toml Workspace configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

MasonChow and others added 8 commits August 30, 2025 01:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@MasonChow MasonChow merged commit 5ffe08b into main Aug 29, 2025
1 check passed
@MasonChow MasonChow deleted the init branch August 29, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants